import { Avatar, Platform, UserFilled, List } from "@element-plus/icons";
import { markRaw } from "vue";
const menu = {
  state: {
    menuList: [
      {
        name: "user",
        label: "用户管理",
        path: "/user",
        icon: markRaw(Avatar),
      },
      {
        name: "course",
        label: "课程管理",
        path: "/course",
        icon: markRaw(Platform),
      },
      {
        name: "coach",
        label: "教练管理",
        path: "/coach",
        icon: markRaw(UserFilled),
      },
      {
        name: "health",
        label: "身体数据",
        path: "/health",
        icon: markRaw(List),
      },
    ],
    collapse: false,
  },
  mutations: {
    changeCollapse(state) {
      state.collapse = !state.collapse;
    },
  },
  actions: [],
};
export default menu;
